HipTilesetImpl

Undocumented in source.

Constructors

this
this(uint tileCount)
Undocumented in source.

Members

Functions

columns
uint columns()
Undocumented in source. Be warned that the author may not have intended to support it.
firstGid
uint firstGid()
Undocumented in source. Be warned that the author may not have intended to support it.
isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
loadImage
IImage loadImage(void delegate(IImage self) onSuccess, void delegate() onFailure)
Undocumented in source. Be warned that the author may not have intended to support it.
loadTexture
bool loadTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
margin
int margin()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
onDispose
void onDispose()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
path
string path()
Undocumented in source. Be warned that the author may not have intended to support it.
setTexture
void setTexture(IHipTexture texture)
Undocumented in source. Be warned that the author may not have intended to support it.
spacing
int spacing()
Undocumented in source. Be warned that the author may not have intended to support it.
texture
IHipTexture texture()
Undocumented in source. Be warned that the author may not have intended to support it.
textureHeight
uint textureHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
texturePath
string texturePath()
Undocumented in source. Be warned that the author may not have intended to support it.
textureWidth
uint textureWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
tileHeight
uint tileHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
tileWidth
uint tileWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
tiles
Tile[] tiles()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromAtlas
IHipTileset fromAtlas(HipTextureAtlas atlas)

Untested. D's Associative Arrays aren't deterministic, this is subject to bug.

fromSpritesheet
IHipTileset fromSpritesheet(Array2D_GC!IHipTextureRegion regions)
Undocumented in source. Be warned that the author may not have intended to support it.
read
HipTilesetImpl read(string path, void delegate(HipTilesetImpl self) onSuccess, void delegate() onError, uint firstGid)
Undocumented in source. Be warned that the author may not have intended to support it.
readFromMemory
HipTilesetImpl readFromMemory(string path, string data, void delegate(HipTilesetImpl) onSuccess, void delegate() onError, uint firstGid)
Undocumented in source. Be warned that the author may not have intended to support it.
readJSON
HipTilesetImpl readJSON(string path, uint firstGid, void delegate(HipTilesetImpl self) onSuccess, void delegate() onError)
Undocumented in source. Be warned that the author may not have intended to support it.
readJSON
HipTilesetImpl readJSON(string path, uint firstGid, JSONValue t, void delegate(HipTilesetImpl self) onSuccess, void delegate() onError)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_columns
uint _columns;
Undocumented in source.
_firstGid
uint _firstGid;

Means where the tileset id starts

_margin
int _margin;
Undocumented in source.
_path
string _path;

Only available when loaded via .tsx

_spacing
int _spacing;
Undocumented in source.
_texture
IHipTexture _texture;
Undocumented in source.
_textureHeight
uint _textureHeight;

"imageheight" in tiled

_texturePath
string _texturePath;

"image" in tiled

_textureWidth
uint _textureWidth;

"imagewidth" in tiled

_tileHeight
uint _tileHeight;
Undocumented in source.
_tileWidth
uint _tileWidth;
Undocumented in source.
_tiles
Tile[] _tiles;
Undocumented in source.
textureImage
IImage textureImage;
Undocumented in source.

Inherited Members

From HipAsset

_name
string _name;

Use it to insert into an asset pool, alias

_assetID
uint _assetID;

Currently not in use

_typeID
uint _typeID;

Usage inside asset manager

startLoadingTimestamp
float startLoadingTimestamp;

When it started loading

loadTime
float loadTime;

How much time it took to load, in millis

name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name(string newName)
Undocumented in source. Be warned that the author may not have intended to support it.
assetID
uint assetID()
Undocumented in source. Be warned that the author may not have intended to support it.
typeID
uint typeID()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()

Action for when the asset finishes loading Proabably be executed on the main thread

startLoading
void startLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
finishLoading
void finishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()

Currently, no AssetID recycle is in mind. It will only invalidate the asset for disposing it on an appropriate time

onDispose
void onDispose()

Use it to clear the engine.

Meta